package com.ruoyi.huanjing.entity.dto;

import java.util.HashMap;
import java.util.Map;

/**
 * 前端可视化数据响应DTO
 */
public class VisualDataResponse {
    private String type; // 数据类型
    private Map<String, Object> data; // 具体数据（X/Y轴或其他结构）

    public static VisualDataResponse of(String type, Map<String, Object> data) {
        VisualDataResponse response = new VisualDataResponse();
        response.setType(type);
        response.setData(data);
        return response;
    }

    // Getter & Setter
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Map<String, Object> getData() {
        return data;
    }

    public void setData(Map<String, Object> data) {
        this.data = data;
    }
}